specific_include_rules = {
  "jump-table-assembler\.(cc|h)": [
    # The JumpTableAssembler should not depend on any wasm-specific headers.
    # The only allowed include is 'src/codegen' for assembler headers.
    "-src",
    "+src/codegen",
    "+src/base/sanitizer/ubsan.h",
    "+src/wasm/jump-table-assembler.h",
  ],
  "c-api\.cc": [
    "+include/libplatform/libplatform.h",
    "+third_party/wasm-api/wasm.h",
  ],
  "c-api\.h": [
    "+third_party/wasm-api/wasm.hh",
  ],
  "wrappers\.cc": [
    "+src/compiler/linkage.h",
    "+src/compiler/turboshaft/index.h",
    "+src/compiler/turboshaft/define-assembler-macros.inc",
    "+src/compiler/turboshaft/assembler.h",
    "+src/compiler/turboshaft/dataview-lowering-reducer.h",
    "+src/compiler/turboshaft/select-lowering-reducer.h",
    "+src/compiler/turboshaft/variable-reducer.h",
  ],
  "turboshaft-graph-interface\.h": [
    "+src/compiler/turboshaft/assembler.h",
    "+src/compiler/turboshaft/wasm-assembler-helpers.h",
  ],
  "turboshaft-graph-interface-inl\.h": [
    "+src/compiler/turboshaft/define-assembler-macros.inc",
    "+src/compiler/turboshaft/undef-assembler-macros.inc",
  ],
  "turboshaft-graph-interface\.cc": [
    "+src/compiler/turboshaft/builtin-call-descriptors.h",
    "+src/compiler/turboshaft/define-assembler-macros.inc",
    "+src/compiler/turboshaft/dataview-lowering-reducer.h",
    "+src/compiler/turboshaft/graph.h",
    "+src/compiler/turboshaft/select-lowering-reducer.h",
    "+src/compiler/turboshaft/undef-assembler-macros.inc",
    "+src/compiler/turboshaft/variable-reducer.h",
  ],
  "wasm-engine\.h": [
    # The WasmEngine may cache common call descriptors.
    "+src/compiler/wasm-call-descriptors.h",
  ],
  "liftoff-assembler\.cc": [
    # The LiftoffAssembler needs to know CallDescriptors.
    "+src/compiler/linkage.h",
  ],
  "liftoff-assembler-(x64|arm64|loong64|mips64|riscv)-inl\.h": [
    # The LiftoffAssembler needs to know CallDescriptors.
    "+src/compiler/linkage.h",
  ],
  "liftoff-compiler\.cc": [
    "-src/compiler",
    "+src/compiler/access-builder.h",
    "+src/compiler/wasm-compiler.h",
  ],
  "module-instantiate\.cc": [
    "+src/compiler/fast-api-calls.h",
  ],
  "simd-shuffle\.h": [
    "+src/compiler/backend/instruction-codes.h",
  ],
  "wrappers\.h": [
    "+src/compiler/linkage.h",
    "+src/compiler/turboshaft/assembler.h",
    "+src/compiler/turboshaft/define-assembler-macros.inc",
    "+src/compiler/turboshaft/index.h",
    "+src/compiler/turboshaft/operations.h",
    "+src/compiler/turboshaft/wasm-assembler-helpers.h",
    "+src/compiler/turboshaft/undef-assembler-macros.inc",
  ],
  "wrappers-inl\.h": [
    "+src/compiler/turboshaft/define-assembler-macros.inc",
    "+src/compiler/turboshaft/undef-assembler-macros.inc",
    "+src/heap/factory-base-inl.h",
  ]

}
